const eventEmitter = require('events')
class myEvent extends eventEmitter{}
const event = new myEvent()
event.on('play',(value)=>{
    console.log(value);
})

event.emit('play','movie')